package cn.tao.org.domain;

import cn.tao.base.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    //部门编号
    private String sn;
    //部门名称
    private String name;
    //
    private String dirPath;

    private Integer state;

    private Long manager_id;

    private Long parent_id;
    //封装一个部门对象
    private Department parts;
    //封装一个员工对象
    private Employee employee;
    //下一级
    private List<Department> children = new ArrayList<>();

}
